package com.huawei.appgallery.forum.forum.activity;

import android.os.Bundle;
import android.text.TextUtils;
import com.huawei.appgallery.forum.base.api.IJGWTabProtocol;
import com.huawei.hmf.annotation.ActivityDefine;
import o.bqx;
import o.bsm;
import o.bun.c;
import o.bun.h;
import o.ContentManager;
import o.fho;
import o.fiu;
import o.fjb;
import o.fjm;
import o.FragmentTransaction;

@ActivityDefine(alias = "forum.following", protocol = IForumActivityProtocol.class)
public class ForumFollowingActivity extends ForumDetailActivity implements bsm {
    protected void ˊ(Bundle bundle) {
        try {
            fjb ˎ = fho.ˏ().ˋ("Forum").ˎ("ForumFollowBaseFragment");
            ((IJGWTabProtocol) ˎ.ˊ()).setUri(this.ͺ);
            fjm ˏ = fjm.ˏ(fiu.ˊ().ˋ(this, ˎ));
            FragmentTransaction ˊ = ˏॱ().ˊ();
            ˊ.ˏ(c.ʻॱ, ˏ.ˏ(), "following_fragment");
            ˊ.ˋ();
        } catch (Throwable e) {
            bqx.ˊ("ForumFollowingActivity", "showFragment error", e);
        }
    }

    public void ˏ(String str) {
        if (TextUtils.isEmpty(str)) {
            str = ContentManager.getInstant().getContext().getResources().getString(h.ˎ);
        }
        ˎ(str);
    }
}
